from django.urls import path
from .views import CourseCategoryView, CourseView, CourseChapterView, SearchCourseView
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('course_category', CourseCategoryView, 'course_category'),
router.register('course', CourseView, 'course'),
router.register('course_chapter', CourseChapterView, 'course_chapter'),
router.register('search', SearchCourseView, 'search'),

urlpatterns = [

]
urlpatterns += router.urls
